package com.yunxi.sell.pojo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yunxi.core.web.DateJsonDeserializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class CarSellPartnerSaveReqVO implements Serializable {
    @ApiModelProperty(value = "主键")
    private String sellId;

    @ApiModelProperty(value = "产品代码")
    private String productCode;

    @ApiModelProperty(value = "产品名称")
    private String productName;

    @ApiModelProperty(value = "品牌id")
    private String brandCode;

    @ApiModelProperty(value = "车系ID")
    private String seriesCode;

    @ApiModelProperty(value = "车型代码")
    private String modelCode;

    @ApiModelProperty(value = "配置代码")
    private String catalogCode;

    @ApiModelProperty(value = "内饰颜色（多个逗号分隔）")
    private String colorIdIns;

    @ApiModelProperty(value = "外饰颜色（多个逗号分隔）")
    private String colorIdOuts;

    @ApiModelProperty(value = "选装包（多个以逗号分隔）")
    private String customPacks;

    @ApiModelProperty(value = "区域（多个以逗号分隔）")
    private String areas;

    @ApiModelProperty(value = "渠道名称（多个以逗号分隔）")
    private String partnerCodes;

    @ApiModelProperty(value = "1启用或0关闭")
    private Integer status;

    @ApiModelProperty(value = "1启用或0关闭")
    private Integer appStatus;

    @ApiModelProperty(value = "失效日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonDeserialize(using=DateJsonDeserializer.class)
    private Date expDate;

    @ApiModelProperty(value = "生效日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonDeserialize(using=DateJsonDeserializer.class)
    private Date pdDate;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonDeserialize(using=DateJsonDeserializer.class)
    private Date createTime;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "是否删除")
    private Integer isDel;

    @ApiModelProperty(value = "备注")
    private String memo;

    @ApiModelProperty(value = "操作类型1插入 2更新")
    private Integer optionType;
}
